package com.smartrobot.controller;

import com.smartrobot.beans.ProcessResult;
import com.smartrobot.conversation.IAssistor;
import com.smartrobot.dispatcher.UserRequest;

public abstract class BaseController implements IAssistor{

	protected UserRequest request;
	public abstract ProcessResult processMessage(String message);
	
	public void setRequest(UserRequest request){
		this.request=request;
	}
	
	protected Object getRequestAttribute(String name){
		return this.request.getAttribute(name);
	}
	
}
